package com.jintian.smart.kernel.orm.config;

import com.jintian.smart.kernel.orm.compatible.PageArgumentResolver;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
public class OrmConfig {
    @Bean
    @ConditionalOnProperty(name = "smart.page.compatible", havingValue = "true", matchIfMissing = true)
    public PageArgumentResolver pageArgumentResolver() {
        return new PageArgumentResolver();
    }
}
